package doj;

import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
 * Tests to make sure angles are shortened properly.
 * @author Jordan Do
 *
 */
public class TestShorten {

  DojBot tester = new DojBot();
  
  /**
   * After the battle, check to see that we've visited the corners.
   *
   */
  
  @Test
  public void testShorten() {
    boolean shorty = true;
    for (int i = 0; i < 360; i++) {
      if (tester.shorten(i) > 180) {
        shorty = false;
      }
    }
    assertTrue("Shorten always goes within 180", shorty);
  }
}

